home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / osr5 / audio / oss-980728 / cntl / ccs
Encoding:
Text File  |  1998-07-28  |  1.2 KB  |  50 lines

  1. #!/bin/sh
  2. #
  3. # Postinstallscript written by Ron Record (rr@sco.com) 
  4.  
  5. scriptname="$0"
  6. step="$1"
  7. keywords="$2"
  8. pkglist="$3"
  9.  
  10. # Source in the standard functions library, ccsSetup.sh
  11. . ccsSetup.sh
  12.  
  13. ccs_return_value=0
  14.  
  15. ConfDriver()
  16. {
  17. #   [ -x /usr/lib/oss/Remove ] && /usr/lib/oss/Remove
  18.  
  19.     /ibin/osaconf -a sco audioconfig.osa LOOP_BACK sco_Tcl_osa \
  20.         /usr/lib/audio/audioconfig/audioconfig.osa
  21.     /ibin/classconf -a sco audioconfig audioconfig.osa
  22.     /ibin/classconf -a sco audiocard audioconfig.osa
  23.     
  24. #   /etc/pnp
  25. #   [ -x /usr/lib/audio/audioconfig/audioconfig ] && {
  26. #       /usr/lib/audio/audioconfig/audioconfig
  27. #   }
  28. #   echo "\nYou must reboot your system to activate the newly installed"
  29. #   echo "Skunkware 98 audio driver."
  30.     echo "\nSee the Skunkware 98 Release Notes for instructions on how"
  31.     echo "to configure your system for use with the Skunkware 98 audio driver."
  32. }
  33.  
  34. RemoveDriver()
  35. {
  36.     /ibin/osaconf -d sco audioconfig.osa
  37.     /ibin/classconf -d sco audioconfig
  38.     /ibin/classconf -d sco audiocard
  39.     /etc/conf/bin/idinstall -d oss
  40. }
  41.  
  42. case "$step" in
  43.         POST_EXPORT) ConfDriver ;;
  44.         PRE_UNEXPORT) RemoveDriver ;;
  45. esac
  46.  
  47. exit $ccs_return_value
  48.  
  49.